<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>Document</title>
  <link rel="stylesheet" href="/css/reset.css">
  <link rel="stylesheet" href="/css/index.css">
  <!-- 引入 layui.css -->
  <link rel="stylesheet" href="layui/css/layui.css">
  <style>
    .ball {
      width: 50px;
      height: 50px;
      background-color: red;
      border-radius: 50%;
      position: absolute;
      top: 0;
      animation: swing 5s infinite linear;
    }

    @keyframes swing {
      0% {
        left: 0;
      }

      50% {
        left: calc(100% - 100px);
        transform: rotate(60deg);
      }

      100% {
        left: 0;
      }
    }
  </style>
</head>

<body>
  <noscript>
    <strong>We're sorry but ali_upload doesn't work properly without JavaScript enabled. Please enable it to
      continue.</strong>
  </noscript>
  <div class="container">
    <div class="upload-drag">
      <div class="upload-logo"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" class="upload-icon">
          <path fill="currentColor"
            d="M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z">
          </path>
        </svg>
        <div class="upload-tip-text">将目录或多个文件拖拽到此处进行扫描</div>
      </div>
      <div class="upload-tip upload-tip-text">支持的文件类型：无限制</div>
      <div class="upload-tip upload-tip-text">每个文件允许的最大尺寸：10G</div>
    </div>
    <div class="layui-btn-container">
      <button type="button" class="layui-btn file-input">
        <i class="layui-icon">&#xe655;</i>
        选择文件
        <input id="selectFile" type="file" multiple></button>
      <button type="button" class="layui-btn layui-btn-normal file-input">
        <i class="layui-icon">&#xe67d;</i>
        选择文件夹
        <input id="selectFileDirectory" type="file" multiple webkitdirectory mozdirectory odirectory></button>
      <button type="button" class="layui-btn layui-btn-danger" id="clearFiles">清空文件列表</button>
    </div>
    <!-- 文件列表 -->
    <div class="fileTable">
      <table class="layui-hide" id="fileTable" lay-filter="fileTable"></table>
    </div>
    <span class="layui-badge layui-bg-cyan">文件数量：<i id="fileCount">0</i></span>
    <span class="layui-badge layui-bg-green">成功上传：0</span>
    <span class="layui-badge layui-bg-blue">总大小：<i id="fileSizeCount">0</i></span>
    <div style="width: 370px; margin: 10px;"> 
      <button type="button" class="layui-btn ayui-btn-primary layui-btn-fluid" id="uploadFiles"><i class="layui-icon">&#xe67c;</i>开始上传</button>
    </div>

    <div class="ball"></div>

    <script type="text/html" id="barTools">
      <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="pass"><i class="layui-icon layui-icon-reduce-circle"></i>取消上传</a>
      <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
    </script>


    <!-- 引入 layui.js -->
    <script src="layui/layui.js"></script>
    <!-- 引入当前页面js文件 -->
    <script src="js/main.js" type="module"></script>
</body>

</html>